<?php

require_once 'config.php';

$dbserver = DBSERVER;
        $dbusername = DBUSER;
        $dbpassword = DBPASSWORD;
        $dbName = DBNAME;

        $con = mysqli_connect($dbserver, $dbusername, $dbpassword, $dbName);
        if (!$con) {
            print ("Access to DB denied\nYour DB configuration is set to " . SERVER . ". Please make sure you are running on the right environment. You can change the configuration in config.php");
            die;
        }
        print ("Access to DB granted! Your DB configuration is set to " . SERVER . ".");
?>
